import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import l1 from '../page/Lean1.vue'
import test from '../page/Demo.vue'
import readState from '../page/vuexTest/ReadState'
import mapGetterTest from '../page/vuexTest/MapGetterTest'
import mapStateTest from '../page/vuexTest/MapStateTest'
import mt from '../page/vuexTest/MutateTest'
import ac from '../page/vuexTest/ActionTest'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    }, {
      path: '/l1',
      name: 'l1',
      component: l1
    }, {
      path: '/demo',
      name: 'test',
      component: test
    }, {
      path: '/read',
      name: 'readState',
      component: readState,
    }, {
      path: '/mg',
      name: 'mapGetterTest',
      component: mapGetterTest
    }, {
      path: '/ms',
      name: 'mapStateTest',
      component: mapStateTest
    }, {
      path: '/mt',
      name: 'mt',
      component: mt
    }, {
      path: '/ac',
      name: 'ac',
      component: ac
    }

  ]
})
